]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Start always at page 0 in AllView
authorCarlos Soriano <carlos.soriano89@gmail.com>
Mon, 19 Aug 2013 12:02:02 +0000 (14:02 +0200)
committerCarlos Soriano <carlos.soriano89@gmail.com>
Mon, 2 Sep 2013 18:02:36 +0000 (20:02 +0200)
Reset the AllView scroll adjustment between overview openings,
following design reasons

https://bugzilla.gnome.org/show_bug.cgi?id=706081

js/ui/appDisplay.js

index bd2e15de4146546c95d7b2fa12f3923d32398bac..ba1c40cf154f097605a9cfef0aa9dcf5d0871acf 100644 (file)
@@ -325,6 +325,11 @@ const AllView = new Lang.Class({
 
         this._availWidth = 0;
         this._availHeight = 0;
+
+        Main.overview.connect('hidden', Lang.bind(this,
+            function() {
+                this.goToPage(0);
+            }));
     },
 
     getCurrentPageY: function() {